package com.bobbygu.server.simpleapp.controller;

import com.bobbygu.server.simpleapp.utils.TextUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetIpAddrController {
    public static String ipAddr = "";

    @RequestMapping("/showIp")
    public String showIp() {
        if (TextUtils.isEmpty(ipAddr))
            return "未找到Ip";
        return ipAddr;
    }
}
